<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <title>js调试</title>
    <script type="text/javascript">
        function clickBtn(){
            str = androidjs.doJsTest("index");
            document.getElementById("messageArea").textContent = str;
        }
        //交易成功回调
        function callback(param){
            document.getElementById("messageArea").textContent = param
        }
        function onResult(result) {
            document.getElementById("messageArea").textContent = result
        }
    </script>
    <title></title>
</head>

<body>
    <button class="btn1" onclick="clickBtn()">js调用Android</button>

    <h2>Android调用JS</h2>
    <div style="font-size: 25px">回调结果：</div>
    <div style="width: 100%">
        <textarea id="messageArea" rows="2" style="width: 100%; font-size: 25px"></textarea>
    </div>
</body>
</html>